/*
 * @Descripttion: 
 * @Author: 银河以北
 * @Date: 2023-05-27 14:20:37
 * @LastEditors: 银河以北
 * @LastEditTime: 2023-05-27 14:53:08
 */
import hljs from 'highlight.js'
import 'highlight.js/styles/atom-one-dark.css'

export default {
    mounted(el, binding, vnode) {

        hljs.configure({ useBR: true });
        let blocks = el.querySelectorAll('pre code');
        blocks.forEach((block) => {
            hljs.highlightBlock(block)
        })

    },

    updated(el){
        console.log('更新')
    }
}

